package com.satan.vote.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.satan.vote.entity.WxUserInfo;
import com.satan.vote.serializer.CustomDateTimeDerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName VoteDetailVO
 * @Description TODO
 * @date 2023/8/16 13:49
 * @Version 1.0
 */
@Data
public class VoteDetailVO {
    private Integer id; // 编号
    private Integer voteId; // 投票ID
    private Integer voteItemId; // 投票选项ID
    private String openid; // 投票人openid
    private WxUserInfo wxUserInfo;
    @JsonDeserialize(using= CustomDateTimeDerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime voteDate; // 投票时间
}
